<div class="menu_first">
<?php

	$filePath = explode("/", $_SERVER[ 'REQUEST_URI'] );
	$thisFile = $filePath[ count($filePath) - 1 ];
	
	if( $_SESSION['language_id'] == 1){

		$btns[] = array("label"=>"Home", "href"=>"index.php");
		$btns[] = array("label"=>"La Empresa", "href"=>"empresa.php");
		$btns[] = array("label"=>"Productos", "href"=>"productos.php");
		$btns[] = array("label"=>"Contacto", "href"=>"contact.php");
		$btns[] = array("label"=>"Ingles", "href"=>"change_language.php?location=$thisFile");
	
	} else {
		
		$btns[] = array("label"=>"Home", "href"=>"index.php");
		$btns[] = array("label"=>"Our Business", "href"=>"empresa.php");
		$btns[] = array("label"=>"Products", "href"=>"productos.php");
		$btns[] = array("label"=>"Contact", "href"=>"contact.php");
		$btns[] = array("label"=>"Spanish", "href"=>"change_language.php?location=$thisFile");
		
	}
		     
	foreach (array_reverse($btns) as $btn ){
		
		$class = "menu_first_item";
		if( $btn[href] == $thisFile || $btn[href] == CONTEXT ) $class .= "_active";
				
		$btn[label] = strtoupper($btn[label]);
		echo "\t<div class=\"$class\"><a href=\"$btn[href]\">$btn[label]</a></div>\r\n";
	}
?>
</div>